package cn.strive.eams.attachment.mapper;

import cn.strive.eams.attachment.pojo.dto.AttachmentQuery;
import cn.strive.eams.attachment.pojo.entity.Attachment;
import cn.strive.eams.attachment.pojo.vo.AttachmentVO;
import org.apache.ibatis.annotations.Delete;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface AttachmentMapper {

    List<AttachmentVO> selectAttachment(AttachmentQuery attachmentQuery);

    void insert(Attachment attachmentVO);


    @Delete("delete from attachment where id = #{id}")
    void deleteAttachment(Long id);

    void update(Attachment attachment);
}
